/*
 * Copyright (c) 2016, FPX and/or its affiliates. All rights reserved.
 * Use, Copy is subject to authorized license.
 */
package com.fpx.open.platform.common.util;

import org.apache.commons.lang3.StringUtils;

/**
 * 
 * @author shiw
 * @date 2016年9月12日
 */
public class TextUtil {
	
	public static String removeLine(String phone){
		if(StringUtils.isNotBlank(phone) && phone.matches("\\d{3}-\\d{4}-\\d{4}")){
			return phone.replaceAll("-", "");
		}
		return phone;
	}
}
